

<template>
  <div>
    <img class="avatar" :src="src.replace(/public/,baseURL)" v-if="src" alt="">
    <img class="avatar" :src="pic" v-else alt="">
  </div>
</template>

<script>
export default {
  props:['src']
}
</script>


<style lang="scss" scoped>
  .avatar{
    width:40px;
    height:40px;
    border-radius: 50%;
    margin-right: 5px;
  }
</style>
